﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MathLab.Messaging
{
    /// <summary>
    /// Common messages used in system.
    /// </summary>
    static class Messages
    {
        public static string NO_ARRAY_FOUND(string name)
        {
            return "Could not find an array named \"" + name + "\".";
        }

        public const string SYNTAX_ERROR = "Syntax error.";        

        public static string ARRAY_ADDED(string name)
        {
            return "Array \"" + name + "\" has been added";
        }

        public static string FILE_ADDED(string name)
        {
            return "File \"" + name + "\" has been created";
        }

        public static string HELP_MESSAGE()
        {
            string result = "";

            result += "Declaring an array:\t\tA=[1 2; 3 4]\n";
            result += "Viewing an array:\t\tA\n";
            result += "Basic operations on arrays:\tA+B A*B A*2\n";
            result += "More operations on arrays:\tinv(A) transpose(A)\n";
            result += "Vector multiply:\t\tA|B\n";
            result += "Read arrays from file:\t\tread(out.txt)\n";
            result += "Write arrays to file:\t\twrite(out.txt)[A B]\n";
            result += "\n";
            result += "Remember to end your last command with " + Literals.COMMAND_END + "\n";

            return result;
        }

        public const string NO_COMMAND_END = "If you're stuck, type \"help" + Literals.COMMAND_END + "\"";
    }
}
